#include "qinsertwidget.h"
#include <QGridLayout>
#include <QHBoxLayout>
#include <QVBoxLayout>
#include <QPushButton>
#include <QLabel>
#include <QLineEdit>
#include <QComboBox>
#include <QSpinBox>
#include <QSqlQuery>
#include "qinsertwidget_p.h"
QInsertWidget::QInsertWidget(QWidget *parent)
    : QWidget{parent}
    , d_ptr(new QInsertWidgetPrivate(this))
{
    Q_D(QInsertWidget);
}

bool QInsertWidget::init(QSqlDatabase *_db, QTableAttribute *_tableAttribute)
{
    Q_D(QInsertWidget);
    d->initData(_db,_tableAttribute);
    d->initUI();

    return true;
}

QInsertWidget::~QInsertWidget()
{
    delete d_ptr;
}



